package gof_003_行为型_Behavioral.gof_005_责任链_ChainOfResponsibility.gof_002_Chain;

public class LeaderManager extends Leader{
    public LeaderManager(String leaderName) {
        super(leaderName);
    }

    @Override
    public String handle(AskForLeave askForLeave) {
        double days = askForLeave.getDays();
        System.out.println("向经理请假...");
        System.out.println("经理同意!!");
        if(days<=5){
        }else{
            this.getNewLeader().handle(askForLeave);
        }
        return null;
    }
}